﻿
using CrazyMan.TM.Interface.Domain;


namespace CrazyMan.TM.Console
{
    class Program
    {
        static void Main(string[] args)
        {
            //single tournament with one table of 8
            Tournament newTournament = new Tournament();
            newTournament.Tables.Add(new Table(8));

            //6 rounds with blinds
            newTournament.Schedule.Intervals.Add(new BettingInterval(20, 5, 10));
            newTournament.Schedule.Intervals.Add(new BettingInterval(20, 5, 10));
            newTournament.Schedule.Intervals.Add(new BettingInterval(15, 10, 20));
            newTournament.Schedule.Intervals.Add(new BettingInterval(15, 10, 20));
            newTournament.Schedule.Intervals.Add(new BettingInterval(10, 20, 40));
            newTournament.Schedule.Intervals.Add(new BettingInterval(10, 50, 100));

            if (newTournament.Tables[0].Seats[0].IsEmpty)
            {
                newTournament.Tables[0].Seats[0].Player = new Player("Glenn","Morton");
            }

            //set chip for tournament
            ChipCase glennsChips = new ChipCase();
            glennsChips.Banks.Add(new ChipBank(new Chip(10), 120));
            glennsChips.Banks.Add(new ChipBank(new Chip(25), 80));
            glennsChips.Banks.Add(new ChipBank(new Chip(50), 50));
            glennsChips.Banks.Add(new ChipBank(new Chip(100), 30));
            glennsChips.Banks.Add(new ChipBank(new Chip(500), 10));
            newTournament.ChipCase = glennsChips;

            newTournament.ChipCase.Banks[10].Withdraw(20);
        }
    }
}
